import request from '@/utils/request'

// 查询发票列表
export function listInvoiceRecord(query) {
  return request({
    url: '/bms/invoiceRecord/list',
    method: 'get',
    params: query
  })
}

// 查询发票详细
export function getInvoiceRecord(id) {
  return request({
    url: '/bms/invoiceRecord/' + id,
    method: 'get'
  })
}

// 新增发票
export function addInvoiceRecord(data) {
  return request({
    url: '/bms/invoiceRecord',
    method: 'post',
    data: data
  })
}

// 修改发票
export function updateInvoiceRecord(data) {
  return request({
    url: '/bms/invoiceRecord',
    method: 'put',
    data: data
  })
}

// 删除发票
export function delInvoiceRecord(id) {
  return request({
    url: '/bms/invoiceRecord/' + id,
    method: 'delete'
  })
}
